package com.five.dao;

import com.five.pojo.review;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface reviewDao {
    @Select("select * from review where act_id=#{actId}")
    List<review> getById(Integer actId);

    @Insert("insert into review(act_id , s_name , re_time , status , content) values (#{actId} , #{sName} , #{reTime} , #{status} , #{content})")
    void addReview(review review);
}
